#ifndef COMPILE_ONLINE
#include"head.cpp"
#endif

void Test1()
{
    string s = "babad";
    string ret = Solution().longestPalindrome(s);
    if(ret == "bab" || ret == "aba")
    {
        std::cout << "通过用例1,...OK!" << std::endl;
    }
    else
    {
        std::cout << "没有通过用例1!" << std::endl;
    }
}

void Test2()
{
    string s = "cbbd";
    string ret = Solution().longestPalindrome(s);
    if(ret == "bb")
    {
        std::cout << "通过用例2,...OK!" << std::endl;
    }
    else
    {
        std::cout << "没有通过用例2!" << std::endl;
    }
}

int main()
{
    Test1();
    Test2();
    return 0;
}